package com.mymall.serve.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 用户类
 *
 * @author weiwei
 * @since 2020/4/11 19:33
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mall_user")
public class MallUser {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 微信昵称
     */
    private String wxNickName;

    /**
     * 微信union_id
     */
    private String wxUnionId;

    /**
     * 微信open_id
     */
    private String wxOpenId;

    private String userName;

    private String entityName;

    private String salt;

    private String password;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
